package com.yzy.demo;

import java.util.ArrayList;

public class ProgressList {

    //存放进程
    private static ArrayList<Progress> progressList;

    public ArrayList<Progress> getProgressList() {
        return progressList;
    }

    //将四个进程存放到progressList中
    static {
        progressList  = new ArrayList<Progress>();
        progressList.add(new Progress("P1",0,3));
        progressList.add(new Progress("P2",1,5));
        progressList.add(new Progress("P3",2,2));
        progressList.add(new Progress("P4",3,3));
    }
}
